package com.woniuxy.ticketorder.service;

import com.woniuxy.ticketorder.service.impl.UserServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "ticket-user",fallback = UserServiceImpl.class) //服务名(已经注册)
public interface UserService {

//    @RequestMapping(method = RequestMethod.GET, value = "/user/add")
    //@RequestParam指定参数
    @GetMapping("user/add")
    String add(@RequestParam("name") String name);

    @GetMapping("user/addIntegration")
    Boolean addIntegration(@RequestParam("integration") int integration,@RequestParam("id") int id);
}
